package com.macro.mall.portal.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.portal.domain.PayDeposit;
import com.macro.mall.portal.domain.RefundDeposit;
import com.macro.mall.portal.domain.vo.PayVo;
import org.dom4j.Document;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 支付定金表 服务类
 *
 * @author db
 * @since 2021-09-07
 */
public interface PayDepositService extends IService<PayDeposit> {

    @Transactional
    CommonResult pay(PayDeposit payDeposit, HttpServletRequest request);

    CommonResult  queryOrderStatus(PayVo payVo);

    CommonResult check(PayVo payVo);

    Document callBack(String reqStr);

    @Transactional
    void add(RefundDeposit refundDeposit);

    void partner(PayDeposit one);
}
